package com.dorukdestan.p2pshare.storage;

import java.io.Serializable;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

import com.dorukdestan.p2pshare.model.SharedFile;

public class SharedFoldersAndFiles implements Serializable{

	private static final long serialVersionUID = -8050216764104666354L;

	private static HashMap<Long, SharedFile>	unsynchronizedSharedFiles;
	public static Map<Long, SharedFile>			sharedFiles;

	private static HashMap<String, SharedFile>	unsynchronizedSharedFilesByName;
	public static Map<String, SharedFile>			sharedFilesByName;
	
	static{
		unsynchronizedSharedFiles = new HashMap<Long, SharedFile>();
		sharedFiles = Collections.synchronizedMap(unsynchronizedSharedFiles);
		
		unsynchronizedSharedFilesByName = new HashMap<String, SharedFile>();
		sharedFilesByName = Collections.synchronizedMap(unsynchronizedSharedFilesByName);
	}
}
